﻿namespace BPM.Web.Shared.Extensions;

public static class DictionaryExtensions
{
    public static string? GetString(this IDictionary<string, object> paras, string key)
    {
        if (string.IsNullOrWhiteSpace(key) || !paras.ContainsKey(key))
            return null;

        return paras[key].ToString();
    }
}
